package create.factory.simple;

/**
 * Created by lie on 2017/10/30.
 * 简单工厂模式的测试
 */
public class Test {
    public static void main(String[] args){
        IComputer apple = ComputerFactory.createComputer("apple");
        IComputer hp = ComputerFactory.createComputer("hp");
        apple.start();
        hp.start();
    }
}
